import React, { Component } from 'react';
import { Switch, Route } from 'react-router-dom'
import UserLayout from '@/app/Hoc/Layouts/UserLayout'
import PageLayout from '@/app/Hoc/Layouts/PageLayout'
import AuthLayout from '@/app/Hoc/Layouts/AuthLayout'
import ErrorLayout from '@/app/Hoc/Layouts/ErrorLayout'
import AuthorizedRoute from './AuthorizedRoute'

class RouteMap extends Component {
    
    render() {
        return (
            <Switch>
                <Route path="/auth" component={ AuthLayout }/>
                <AuthorizedRoute path="/user" component={ UserLayout }/>
                <Route path="/error" component={ ErrorLayout } />
                <Route path="/" component={ PageLayout } />
            </Switch>
        )
    }
}

export default RouteMap

